package com.qcby.model;

public class Hall {
    private Integer hId;

    private Integer cId;

    private String hName;

    private Integer hCapacity;

    private Integer rowNo;

    private Integer lineNo;

    private Cinema cinema;

    public Cinema getCinema() {
        return cinema;
    }

    public void setCinema(Cinema cinema) {
        this.cinema = cinema;
    }

    public Integer gethId() {
        return hId;
    }

    public void sethId(Integer hId) {
        this.hId = hId;
    }

    public Integer getcId() {
        return cId;
    }

    public void setcId(Integer cId) {
        this.cId = cId;
    }

    public String gethName() {
        return hName;
    }

    public void sethName(String hName) {
        this.hName = hName == null ? null : hName.trim();
    }

    public Integer gethCapacity() {
        return rowNo*lineNo;
    }

    public void sethCapacity(Integer hCapacity) {
        this.hCapacity = hCapacity;
    }

    public Integer getRowNo() {
        return rowNo;
    }

    public void setRowNo(Integer rowNo) {
        this.rowNo = rowNo;
    }

    public Integer getLineNo() {
        return lineNo;
    }

    public void setLineNo(Integer lineNo) {
        this.lineNo = lineNo;
    }

    @Override
    public String toString() {
        return "Hall{" +
                "hId=" + hId +
                ", cId=" + cId +
                ", hName='" + hName + '\'' +
                ", hCapacity=" + hCapacity +
                ", rowNo=" + rowNo +
                ", lineNo=" + lineNo +
                '}';
    }
}